﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
namespace SpyTxT
{

    public class CityTemplate
    {
        public string name{ get; set; }
   
    }


    public class CityAreaTemplate
    {
        public string cityarea{ get; set; }
        public List<CityTemplate> cityarealist{ get; set; }
    }
 
    public class CityAreaListTemplate : ObservableCollection<CityAreaTemplate>
    {
        public CityAreaListTemplate()
        {
            CityAreaTemplate p = new CityAreaTemplate();
            CityAreaTemplate c = new CityAreaTemplate();
            CityTemplate d = new CityTemplate();
            p.cityarea = "111111111111111";
            c.cityarea = "33333333333333333";
            p.cityarealist = new List<CityTemplate>();
            c.cityarealist = new List<CityTemplate>();
            d.name = "222222222222222222";
            p.cityarealist.Add(d);
            c.cityarealist.Add(d);
            this.Add(p);
            this.Add(c);

        }
        
    }
    [Serializable]
    public class Area
    {
        [XmlRootAttribute("name")]
        public string cityname;

    }
    [Serializable]
    public class AreaList
    {
        public List<Area> arealist;
    }
    [Serializable]
    [XmlRoot("mylist")]
    public class mylist
    {
        [XmlElement("areaList")]
        public AreaList arealist;
    }
 

}
